<?php
/**
 * 错误页面
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/2/25
 * Time: 18:35
 */

namespace app\index\controller;

use app\common\controller\HomeBase;

class Error extends HomeBase
{
    public function index()
    {
        $controller = $this->request->controller();
        $title = '新功能,敬请期待';

        switch ($controller) {
            case 'Beauty':
                $title = '美景';
                break;
            case 'Travel':
                $title = '旅行';
                break;
            case 'Shopping':
                $title = '购物';
                break;
        }
        $content = '新功能,2017,不见不散,敬请期待';
        $this->assign('title', $title);
        $this->assign('content', $content);
        return $this->fetch('about/index');
//        $this->error('未找到页面');
    }
}